package com.lijing.Merge;

import com.lijing.StopWatch.StopWatch;

import java.util.Arrays;

public class MergeTest {
    public static void main(String[] args) {
        int n = 800000;
        Integer[] arr = new Integer[n];
        for (int i = 0; i < n; i++) {
            arr[i] = (int)(Math.random()*n*10);
        }
        StopWatch sw = new StopWatch();
        Merge.sort(arr);
        double time = sw.elapsedTime();
        //System.out.println(Arrays.toString(arr));
        System.out.println("Cost time:"+time+"s");
    }
}
